package com.designpattern.creatorpattern.builder;

/**
 * @author Administration
 * @date 2021/10/14 - 14:27 - 星期四
 * @project 建造者模式中的 指挥者类
 * @package com.designpattern.creatorpattern.builder
 * @by 晨
 */
public class Director {

    private Builder mBuilder;

    public Director(Builder builder) {
        mBuilder = builder;
    }

    public Bike construct() {
        mBuilder.buildFrame();
        mBuilder.buildSeat();
        return mBuilder.createBike();
    }
}
